﻿using System.ServiceModel;

namespace CodeflowsHost
{
    public class CodeflowWorkerHost : CustomServiceBase
    {
        ServiceHost _host;

        public override void Start()
        {
            _host = new ServiceHost(typeof(CodeflowWorker));
            _host.Open();
        }

        public override void Stop()
        {
            _host.Close();
        }

        protected override string GetServiceName()
        {
            return "Codeflows Worker Service";
        }        
    }
}